package com.lening.provider.service.impl.InformationManagement;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.common.base.BaseServiceImpl;
import com.lening.provider.dao.InformationManagement.NewsListDAO;
import com.lening.provider.dto.InformationManagement.NewsListDTO;
import com.lening.provider.po.InformationManagement.NewsListPO;
import com.lening.provider.service.InformationManagement.NewsListService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 刘政华
 * @datetime 2024/6/5 11:32
 * @description 类对象
 */
@Slf4j
@Service
public class NewsListServiceImpl extends BaseServiceImpl<NewsListDAO, NewsListPO, NewsListDTO> implements NewsListService {

    @Resource
    private NewsListDAO newsListDAO;

    @Override
    public Page<NewsListDTO> newList(Page<NewsListDTO> newsListDTO) {
        Page<NewsListDTO> newsPage = newsListDAO.getList(newsListDTO);
        return newsPage;
    }

    @Override
    public Page<?> page(NewsListDTO newsListDTO) {
        return this.baseMapper.getList(newsListDTO);
    }
}
